package com.yeci.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 * @author yeci
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysLinks对象", description="")
public class SysLinks implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "链接ID")
      @TableId(value = "id", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "链接名称")
    private String name;

    @ApiModelProperty(value = "链接图标")
    private String icon;

    @ApiModelProperty(value = "链接地址")
    private String url;

    @ApiModelProperty(value = "链接分类（1:前端、2:后端、3:虚拟机、4:镜像、5:其它博客、6:教程、7:实用工具）")
    private Integer type;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
